const router = require('koa-router')()
const userController = require('../../controller/userController')
router.prefix('/api/user')
router.post('loginGetToken',userController.loginGetToken)//登陆成功，生成token
router.get('/userInfo/:id,userController.getUserInfoById')//获取个人信息，用于验证token有效期
module.exports = router